﻿<UserControl
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:wpf="clr-namespace:ViewOnCore.Helper.WPF;assembly=ViewOnCore"
   xmlns:properties="clr-namespace:MediaDesktopPlayerAddIn.Properties"
   xmlns:d="http://schemas.microsoft.com/expression/blend/2006"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
   mc:Ignorable="d"
   x:Class="UI.Control.VideoTagControl"
   MaxHeight="170">

	<UserControl.Resources>

		<Storyboard x:Key="imgFrontCoverHighlightMouseEnter">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="imgFrontCoverHighlight" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>

		<Storyboard x:Key="imgFrontCoverHighlightMouseLeave">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="imgFrontCoverHighlight" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>

	</UserControl.Resources>

	<UserControl.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="imgFrontCoverHighlight">
			<BeginStoryboard Storyboard="{StaticResource imgFrontCoverHighlightMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="imgFrontCoverHighlight">
			<BeginStoryboard Storyboard="{StaticResource imgFrontCoverHighlightMouseLeave}" x:Name="CoverHighlightMouseLeave_BeginStoryboard"/>
		</EventTrigger>
	</UserControl.Triggers>

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="100"/>
			<ColumnDefinition Width="110"/>
			<ColumnDefinition Width="210"/>
			<ColumnDefinition Width="80"/>
			<ColumnDefinition Width="210"/>
			<ColumnDefinition Width="80"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>

		<Border x:Name="imgFrontCoverBorder" Grid.RowSpan="5" Margin="5,5,5,5" Width="80" Height="90" Background="{DynamicResource VOGradient01}" BorderBrush="{DynamicResource VOColor10}" BorderThickness="1,1,1,1" CornerRadius="1,1,1,1" AllowDrop="True">
			<Image x:Name="imgFrontCover" Width="80" Height="90" AllowDrop="True"/>
		</Border>

		<Border Grid.RowSpan="5" x:Name="imgFrontCoverHighlight" Width="84" Height="94" Background="{DynamicResource ShinyBackground}" Opacity="0">
			<TextBlock Text="{x:Static properties:Globalization.VideoTagControl_ClickToEdit}" TextWrapping="Wrap" Width="Auto" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{DynamicResource VOColor02}" FontWeight="Bold" FontSize="22" FontFamily="Arial Rounded MT" TextAlignment="Center"/>
		</Border>

		<TextBlock Grid.Column="1" Text="{x:Static properties:Globalization.VideoTagControl_MetaTags}" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBlock Grid.Column="1" Text="{x:Static properties:Globalization.VideoTagControl_Title}" Grid.Row="1" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBlock Grid.Column="1" Text="{x:Static properties:Globalization.VideoTagControl_Director}" Grid.Row="2" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBlock Grid.Column="1" Text="{x:Static properties:Globalization.VideoTagControl_Languages}" Grid.Row="3" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBlock Grid.Column="1" Text="{x:Static properties:Globalization.VideoTagControl_Casts}" Grid.Row="4" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<wpf:IntellisenseTextBox x:Name="txtMetaTags" IsReadOnly="True" Grid.Column="2" Grid.ColumnSpan="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="5,1,5,1" FontSize="10" TabIndex="0" />
		<!--Button x:Name="btnMetaTags" HorizontalAlignment="Left" Width="20" Grid.Column="5" Content="..." VerticalAlignment="Center"/-->
		<TextBox x:Name="txtTitle" IsReadOnly="True" Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" Margin="5,1,5,1" Width="200" HorizontalAlignment="Center" FontSize="10" TabIndex="1" />
		<wpf:IntellisenseTextBox x:Name="txtDirector" IsReadOnly="True" Grid.Column="2" Grid.Row="2" VerticalAlignment="Center" Margin="5,1,5,1" Width="200" HorizontalAlignment="Center" FontSize="10" TabIndex="2" />
		<wpf:IntellisenseTextBox x:Name="txtLangages" IsReadOnly="True" Grid.Column="2" Grid.Row="3" VerticalAlignment="Center" Margin="5,1,5,1" Width="200" HorizontalAlignment="Center" FontSize="10" TabIndex="3" />
		<wpf:IntellisenseTextBox x:Name="txtCasts" IsReadOnly="True" Grid.Column="2" Grid.Row="4" VerticalAlignment="Center" Margin="5,1,5,1" Width="200" HorizontalAlignment="Center" FontSize="10" TabIndex="3" />
		<TextBlock Grid.Column="3" Text="{x:Static properties:Globalization.VideoTagControl_PlotOutline}" Grid.Row="4" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBlock Grid.Column="1" Text="{x:Static properties:Globalization.VideoTagControl_Genres}" Grid.Row="5" FontWeight="Bold" HorizontalAlignment="Left" Grid.ColumnSpan="2" Margin="5,0,0,0" FontSize="10" VerticalAlignment="Center" />
		<TextBlock Grid.Column="1" Text="{x:Static properties:Globalization.VideoTagControl_Traillers}" Grid.Row="6" FontWeight="Bold" HorizontalAlignment="Left" Grid.ColumnSpan="2" Margin="5,0,0,0" FontSize="10" VerticalAlignment="Center" />
		<TextBlock Grid.Column="1" Text="{x:Static properties:Globalization.VideoTagControl_Companies}" Grid.Row="7" FontWeight="Bold" HorizontalAlignment="Left" Grid.ColumnSpan="2" Margin="5,0,0,0" FontSize="10" VerticalAlignment="Center" />
		<TextBlock Grid.Column="3" Text="{x:Static properties:Globalization.VideoTagControl_Rating}" Grid.Row="3" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBlock Grid.Column="3" Grid.Row="1" Text="{x:Static properties:Globalization.VideoTagControl_Duration}" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBlock Grid.Column="3" Grid.Row="2" Text="{x:Static properties:Globalization.VideoTagControl_ReleaseDate}" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBox x:Name="txtDuration" IsReadOnly="True" Grid.Row="1" Grid.Column="4" VerticalAlignment="Center" Margin="5,1,0,1" Width="60" HorizontalAlignment="Left" FontSize="10" TabIndex="8" />
		<TextBox x:Name="txtReleaseDate" IsReadOnly="True" Grid.Row="2" Grid.Column="4" VerticalAlignment="Center" Margin="5,1,0,1" Width="60" HorizontalAlignment="Left" FontSize="10" TabIndex="8" />
		<TextBox x:Name="txtPlotOutline" IsReadOnly="True" Grid.Column="4" Grid.Row="4" VerticalAlignment="Stretch" Margin="5,1,5,1" Grid.RowSpan="3" Grid.ColumnSpan="3"  VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Grid.IsSharedSizeScope="False" AcceptsReturn="True" TextWrapping="Wrap" SpellCheck.IsEnabled="True" FontSize="10" TabIndex="9" />
		<wpf:IntellisenseTextBox x:Name="txtGenres" IsReadOnly="True" Grid.Column="2" Grid.Row="5" HorizontalAlignment="Center" Width="200" VerticalAlignment="Center" Margin="5,1,5,1" TabIndex="4" />
		<TextBox x:Name="txtTraillers" IsReadOnly="True" Grid.Column="2" Grid.Row="6" HorizontalAlignment="Center" Width="200" VerticalAlignment="Center" Margin="5,1,5,1" TabIndex="4" />
		<wpf:IntellisenseTextBox x:Name="txtCompanies" IsReadOnly="True" Grid.Column="2" Grid.Row="7" HorizontalAlignment="Center" Width="200" VerticalAlignment="Center" Margin="5,1,5,1" TabIndex="4" />

		<StackPanel Grid.Row="3" Grid.Column="4" Orientation="Horizontal" Margin="5,0,0,0">
			<ToggleButton x:Name="tbtRating1" IsEnabled="False" Width="16" Height="20" Style="{StaticResource ToggleButton.Star}"/>
			<ToggleButton x:Name="tbtRating2" IsEnabled="False" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
			<ToggleButton x:Name="tbtRating3" IsEnabled="False" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
			<ToggleButton x:Name="tbtRating4" IsEnabled="False" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
			<ToggleButton x:Name="tbtRating5" IsEnabled="False" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
		</StackPanel>

		<TextBlock x:Name="lblPath" Grid.Row="7" Grid.Column="3" Text="{x:Static properties:Globalization.VideoTagControl_FilePath}" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />
		<TextBlock x:Name="txtPath" Grid.Row="7" Grid.Column="4" Text="" Cursor="Hand" TextDecorations="Underline" Foreground="{DynamicResource VOColor02}" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="10" />

	</Grid>
</UserControl>
